<?php
	/**
	 * Database user.
	 * @author IMP
	 */
	
	class DatabaseUser extends User {
		private $parent, $name;
		
		public function __construct(DatabaseUserLogin $parent, $id, $name = null){
			parent::__construct($id);
			$this->parent = $parent;
			$this->name = $parent->getProperty($this, 'loginName');
		}
		
		public function __toString(){
			return $this->name;
		}
	}
?>